package com.example.inflection.util;

import com.example.inflection.entity.Local;
import com.example.inflection.mapper.LocalMapper;
//import jdk.dynalink.beans.StaticClass;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class IterateDate {
    public static void main(String[] args) throws ParseException {

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Calendar c=Calendar.getInstance();
        Date beginDate=simpleDateFormat.parse("2020-01-13");
        Date endDate = simpleDateFormat.parse("2020-01-18");
        Date date=beginDate;
        while (!date.equals(endDate)){
            System.out.println(date);
            c.setTime(date);
            c.add(Calendar.DATE,1);
            date=c.getTime();
        }
    }

}
